<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:t="http://myfaces.apache.org/tomahawk">
<body>
<ui:composition template="/WEB-INF/facelets/afterLoginTemplate.xhtml">

<ui:define name="title">
  Patient List 5
</ui:define>

<ui:define name="body">
<t:outputText value="#{patientBean.lastName}"/>
<h:form>

<h:dataTable value="#{patientBean.dataModel}" var="dbRow"
			border="1" headerClass="HEADING" rowClasses="ROW1,ROW2">
	<h:column>
		<f:facet name="header">
			<f:verbatim>First Name</f:verbatim>
		</f:facet>
		<h:commandLink value="#{dbRow.pat_fname}" action="#{patientBean.select}"/>
	</h:column>
	<h:column>
		<f:facet name="header">
			<f:verbatim>Last Name</f:verbatim>
		</f:facet>
		<h:outputText value="#{dbRow.pat_lname}"/>
	</h:column>
	<h:column>
		<f:facet name="header">
			<f:verbatim>Address</f:verbatim>
		</f:facet>
		<h:outputText value="#{dbRow.pat_addr}"/>
	</h:column>
</h:dataTable>

</h:form>
</ui:define>

</ui:composition>
</body></html>